#include<bits/stdc++.h>
using namespace std;
const int N=(1<<21)+100;
using ll=long long;
using ul=unsigned long long;
using vt=vector<int>;
int T,n=200,m,K,a[N],b[N],p[N],f[N];
mt19937_64 rg(random_device{}());
int rd(int l,int r){return l+rg()%(r-l+1);}
ll rdl(ll l,ll r){return l+rg()%(r-l+1);}
int pm[5]={998244353,int(1e9+7),int(1e9+9),5<<25|1,7<<26|1};
int pc[N],pt;
struct dat{
    int x,y;
}d[N];
bitset<N>vs;
int main(){
    ios::sync_with_stdio(false),cin.tie(0);
    int i,j,k,l,r,x,y,z;
    // freopen("journey.in","w",stdout);
    // n=rd(2,10),m=rd(1,26),T=rd(1,100);
    // // n=300,m=90000,T=1e5;
    // printf("%d %d %d\n",n,m,T);
    // r=rd(1,100);
    // while(m--)printf("%d %d %d\n",rd(1,n),rd(1,n),rd(0,r));
    // while(T--)printf("%d\n",rd(0,r));
    // freopen("guess.in","w",stdout);
    // T=rd(1,1000);
    // printf("%d\n",T);
    // while(T--){
    //     n=rd(2,1000);
    //     r=rd(1,1<<rd(1,30));
    //     printf("%d %d %d %d %d %d\n",n,rd(1,r),rd(1,r),rd(1,r),rd(1,r),rd(1,n));
    // }
    freopen("bracket.in","w",stdout);
    // n=rd(1,8);
    n=8;
    printf("%d\n",n);
    string s="()x";
    for(x=1;x<=n;++x)putchar(s[rg()%3]);
    return 0;
}